﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Demo01
    {
        static void Mainn(string[] args)
        {
            Console.WriteLine("请输入一个四位数");
            string   a = Console.ReadLine();
            double d = double.Parse(a);
            Console.WriteLine("千位为"+d%1000);
            Console.WriteLine("百位为"+d%100/10);
            Console.WriteLine("十位为"+d/100%10);
            Console.WriteLine("个位为"+d/1000);




        }
    }
}
